<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="page" tagdir="/WEB-INF/tags/page"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<page:defaultpage>
	<div>
		<a href="<c:url value="/scheduler/${scheduler.metaData.schedulerName}/pauseAll"/>">Pause All</a>
		<a href="<c:url value="/scheduler/${scheduler.metaData.schedulerName}/resumeAll"/>">Resume All</a>
	</div>

	<h1>Scheduler</h1>
	<table>
		<tbody>
			<tr>
				<td>Name</td>
				<td>${scheduler.metaData.schedulerName}</td>
			</tr>
			<tr>
				<td>InstanceId</td>
				<td>${scheduler.metaData.schedulerInstanceId}</td>
			</tr>
			<tr>
				<td>Class</td>
				<td>${scheduler.metaData.schedulerClass}</td>
			</tr>
			<tr>
				<td>Running Since</td>
				<td>
					<fmt:formatDate value="${scheduler.metaData.runningSince}" pattern="yyyy-MM-dd HH:mm:ss" var="runningSince" />
					<c:out value="${runningSince}" default="-" />
				</td>
			</tr>
			<tr>
				<td>Number Of Jobs</td>
				<td>${fn:length(scheduler.jobDetails)}</td>
			</tr>
			<tr>
				<td>Number Of Jobs Executed</td>
				<td>${scheduler.metaData.numberOfJobsExecuted}</td>
			</tr>
			<tr>
				<td>Job Store Class</td>
				<td>${scheduler.metaData.jobStoreClass}</td>
			</tr>
			<tr>
				<td>Thread Pool Class</td>
				<td>${scheduler.metaData.threadPoolClass}</td>
			</tr>
			<tr>
				<td>Thread Pool Size</td>
				<td>${scheduler.metaData.threadPoolSize}</td>
			</tr>
			<tr>
				<td>JobStore Supports Persistence</td>
				<td>${scheduler.metaData.isJobStoreSupportsPersistence}</td>
			</tr>
			<tr>
				<td>JobStore Clustered</td>
				<td>${scheduler.metaData.isJobStoreClustered}</td>
			</tr>
			<tr>
				<td>Scheduler Remote</td>
				<td>${scheduler.metaData.isSchedulerRemote}</td>
			</tr>
			<tr>
				<td>Started</td>
				<td>${scheduler.metaData.isStarted}</td>
			</tr>
			<tr>
				<td>In Standby Mode</td>
				<td>${scheduler.metaData.isInStandbyMode}</td>
			</tr>
			<tr>
				<td>Shutdown</td>
				<td>${scheduler.metaData.isShutdown}</td>
			</tr>
		</tbody>
	</table>
	
	<br/>
	
	<h1>Context</h1>
	<table>
		<tbody>
			<c:forEach items="${scheduler.context}" var="context">
				<tr>
					<td>${context.key}</td>
					<td>${context.value}</td>
				</tr>
			</c:forEach>
		</tbody>
	</table>
</page:defaultpage>